package rmi;

import java.io.Serializable;

/*
*
*   服务器至少暴漏如下RPC/RMI接口：
*       bool add(Book b)  添加一个书籍对象
*       Book queryByID(int bookID)  查询指定ID的书籍对象
*       BookList queryByName(String name) 按书名查询书籍列表
*       bool delete(int bookID) 删除指定ID号的书籍对象
* 
*/

public class Book implements Serializable{
	private int ID;
	private String name;
	private static final long serialVersionUID = -127L;
	
	public Book(int id, String na) {
		this.ID = id;
		this.name = na;
	}
	public int getID() {
		return this.ID;
	}
	public String getName() {
		return this.name;
	}
	public void disp() {
		System.out.println("book info: (ID:"+ID+", bookName:"+name+")");
	}
	

}
